package com.webrtc.config.http;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author liuzhiqiang
 */
public class LoginResources {


    public static final Map<String, TargetUser> loginUser = new ConcurrentHashMap<>();

    public static void addUser(String userId, TargetUser targetUser) {
        loginUser.put(userId,targetUser);
    }

    public static TargetUser getUser(String userId) {
        return loginUser.get(userId);
    }
}
